<template>
	<view class="empty">
		<view class="empty-pic">
			<image :src="img"></image>
		</view>
		<view class="empty-txt">{{txt}}</view>
	</view>
</template>

<script>
	export default {
		props: {
			img: {
				type: String,
				default: require('@/assets/images/empty.png')
			},
			txt: {
				type: String,
				default: '还没有绑定图书码'
			}
		},
	}
</script>

<style scoped>
	.empty {
		width: 337rpx;
		margin: 0 auto
	}

	.empty-pic {
		width: 337rpx;
		height: 325rpx;
	}

	.empty-pic image {
		width: 100%;
		height: 100%;
	}

	.empty-txt {
		font-size: 30rpx;
		color: #81848c;
		margin-top: 30rpx;
		text-align: center;
	}
</style>
